home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ahmstanc / _setup.1 / AHMTFormDivider.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-05  |  2.4 KB  |  76 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'AHMTFormDivider.pas' rev: 3.00
  6.  
  7. #ifndef AHMTFormDividerHPP
  8. #define AHMTFormDividerHPP
  9. #include <Controls.hpp>
  10. #include <AHMSControls.hpp>
  11. #include <StdCtrls.hpp>
  12. #include <Graphics.hpp>
  13. #include <Classes.hpp>
  14. #include <SysUtils.hpp>
  15. #include <Messages.hpp>
  16. #include <Windows.hpp>
  17. #include <SysInit.hpp>
  18. #include <System.hpp>
  19.  
  20. //-- user supplied -----------------------------------------------------------
  21.  
  22. namespace Ahmtformdivider
  23. {
  24. //-- type declarations -------------------------------------------------------
  25. enum TAHMDivBorder { bdrSunken, bdrRaised, bdrEtched, frmSunken, frmRaised, frmEtched };
  26.  
  27. class DELPHICLASS TAHMFormDivider;
  28. class PASCALIMPLEMENTATION TAHMFormDivider : public Stdctrls::TCustomLabel 
  29. {
  30.     typedef Stdctrls::TCustomLabel inherited;
  31.     
  32. private:
  33.     Ahmscontrols::TAHMAboutSControlStr FAboutStr;
  34.     HWND AppHandle;
  35.     HWND MyOwnerhandle;
  36.     Controls::TWinControl* MyOwner;
  37.     bool FAlignWidth;
  38.     int FSideSpace;
  39.     TAHMDivBorder FBorderStyle;
  40.     void __fastcall SetSideSpace(int Value);
  41.     void __fastcall SetAlignWidth(bool Value);
  42.     void __fastcall SetBorderStyle(TAHMDivBorder Value);
  43.     
  44. protected:
  45.     void *OldWndProc;
  46.     void *NewWndProc;
  47.     virtual void __fastcall Loaded(void);
  48.     void __fastcall HookWin(void);
  49.     void __fastcall UnhookWin(void);
  50.     
  51. public:
  52.     virtual void __fastcall Hooked(Messages::TMessage &AMsg);
  53.     __fastcall virtual ~TAHMFormDivider(void);
  54.     __fastcall virtual TAHMFormDivider(Classes::TComponent* AOwner);
  55.     virtual void __fastcall Paint(void);
  56.     
  57. __published:
  58.     __property Ahmscontrols::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
  59.     __property bool AlignWidth = {read=FAlignWidth, write=SetAlignWidth, nodefault};
  60.     __property TAHMDivBorder BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=2};
  61.     __property int SideSpace = {read=FSideSpace, write=SetSideSpace, default=20};
  62.     __property Width ;
  63.     __property Height ;
  64.     __property Font ;
  65.     __property Caption ;
  66. };
  67.  
  68. //-- var, const, procedure ---------------------------------------------------
  69.  
  70. }    /* namespace Ahmtformdivider */
  71. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  72. using namespace Ahmtformdivider;
  73. #endif
  74. //-- end unit ----------------------------------------------------------------
  75. #endif    // AHMTFormDivider
  76.